home *** CD-ROM | disk | FTP | other *** search
- ; DESC: Sets Cursor Position V1.01
- ; IN: *{ROWCOL} row and column to postion cursor
- ; row (0-24),col (0-79) (i.e. 0104)
- ; 1st row, 5th column
- ; *{PAGE_NUM} page number (0-7) in 40 character mode and (0-3)
- ; in 80 character mode (i.e. 0003) is page 4
- ; SAMPLE: Callm CURS_SET,<ROWCOL,PAGE_NUM>,
- ; ####################################################################
-
- Extrn PUSHALL:Near
- Extrn POPALL:Near
-
- CURS_SEC Segment
- Assume CS:CURS_SEC
- Public CURS_SET
-
- ;notice.
- DB 'CURS_SET - V1.01, Copyright 1987, CoreTechs ',0DH,0AH
-
- CURS_SET Proc Near
- Call PUSHALL ;save registers.
-
- Pop BX ;recover page number and
- Xchg BH,BL ;place it in BH.
-
- Pop DX ;recover cursor.
-
- Mov AH,2 ;position cursor.
- Int 10H
-
- Call POPALL ;recover registers.
- Ret
-
- CURS_SET Endp
- CURS_SEC Ends
- End